#include <iostream>
using namespace std;

template<class T, int size>
class CArray {
	T a[size];
public:
	void print() {
		for (int i = 0; i < size; ++i)
			cout << a[i] << endl;
	}
};

int main() {
	CArray<double, 40>a2;
	CArray<int, 50>a3;
	a2.print();
	a3.print();
	return 0;
}